<div class="navbar">
	<div class="navbar-header">
     	<a class="brand" href="/"><span class="first"></span> <span class="second">MyAdmin</span></a>
    </div> 
	<div class="navbar-inner" id="tab">
		<ul class="nav pull-right">
			<li class="doSidebarClz"><a href="#" role="button">
                    	<?php echo isset($_COOKIE['sidebarStatus']) && $_COOKIE['sidebarStatus'] == 'no' ? '打开侧栏<i class="icon-step-forward"></i>' :'关闭侧栏<i class="icon-step-backward"></i>'?>
                    	</a></li>
			<!-- li><a href="#" class="hidden-phone visible-tablet visible-desktop" role="button">设置模板</a></li -->

			<li id="fat-menu" class="dropdown"><a href="#" role="button"
				class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-cog"></i>设置<i class="icon-caret-down"></i>
			</a>
				<ul class="dropdown-menu">
					<li><a href="/admin/setting">系统设置</a></li>
				</ul></li>

			<li id="fat-menu" class="dropdown"><a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">选择模板<i lass="icon-caret-down"></i></a>
				<ul class="dropdown-menu">
					<li><a href="/admin/setskin?skin=default">默认模板</a></li>
					<li><a href="/admin/setskin?skin=blacktie">黑色领结</a></li>
					<li><a href="/admin/setskin?skin=wintertide">冰雪冬季</a></li>
					<li><a href="/admin/setskin?skin=schoolpainting">青葱校园</a></li>
				</ul>
			</li>

			<li id="fat-menu" class="dropdown">
				<a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i>
							<?php echo $_SESSION['userName'];?>
                            <i class="icon-caret-down"></i>
				</a>
				<ul class="dropdown-menu">
					<li><a tabindex="-1" href="/account/profile">我的账号</a></li>
					<li><a tabindex="-1" href="/user/logout">登出</a></li>
				</ul></li>
		</ul>
		<ul class="nav nav-pills">
			   		<?php
						 if ($apps) {
							foreach ( $apps as $app ) {
									$curr = isset ( $_SESSION ['app_id'] ) && ($_SESSION ['app_id'] == $app ['app_id']) ? 'class="active"' : '';
									echo ' <li ' . $curr . '><a href="' . $app ['app_url'] . '" > ' . $app ['app_name'] . '</a></li>';
								}
							}
					?>
		</ul>
	</div>
</div>